package com.sptpc.demo.controller;

import com.sptpc.demo.controller.requests.AddOrderRequest;
import com.sptpc.demo.model.Order;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @PostMapping("/")
    public Order addNerOrder(@RequestBody AddOrderRequest request){
        log.info("订单信息：{}",request);
        return null;
    }
}
